package com.fhzz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fhzz.mapper.LoginMapper;
import com.fhzz.model.User;
import com.fhzz.service.LoginService;



@Service
public class LoginServiceImpl implements LoginService{
	
	@Autowired
	private LoginMapper loginMapper;
	
	@Override
	public String getpwdbyname(String name) {
		User user = loginMapper.getpwdbyname(name);
		if(user!=null) {
			return user.getPassword();
		}else {
			return null;
		}
	}

}
